Making a teleporter



Teleporters are a memorable feature of the Doom engine, with much potential for a creative designer. This tutorial will guide you through building a basic teleporter, and assumes that you know how to use the basic functions of a map editor, namely creating and editing sectors, linedefs, and things.

To create a basic teleporter for vanilla Doom, you need two main elements - the pad and the destination.

Teleport pad
First, you need the teleporter itself, marked with A on the diagram. Technically, what you need to worry about are the linedefs of the pad, but in most cases, you will style the pad itself to help signify its purpose.

So, set up a bare room in your map editor, at least 192 by 320 units. For the teleport pad, put a square 64 by 64 sector in one half of the room (red in the image). Teleport linedef types only work when passing from the linedef's front side, so make sure that all four sides of the pad are facing outward. Next, edit these linedefs, and give them a type, in this case number 97 ("Walk repeatable: teleport"), which is a normal teleport. Also set their tags to an unused number which will correspond to the destination sector.

Teleport destination
After setting up the lines of the teleporter, you need the spot for the player to warp into, marked with B on the diagram. This consists of a properly tagged sector, and a teleport destination (thing 14) within that sector.

A good way to start is by placing the teleport destination. The destination thing's position is the exact spot in that sector that the player will arrive, and the thing's angle determines where the player will face, so set both accordingly. In the diagram, the thing is green.

Almost any sector can contain a teleport destination, but each sector should only have one, because the sector's tag is what the teleporter type looks for. You can simply use the main sector surrounding the teleport, but in the diagram, there is a new circular sector (in yellow) for the purpose. In either case, set the chosen sector's tag to match the teleport linedefs' tag which you set above.

Aesthetics and other uses
You should now have a functional teleporter. To make it actually stand out as such though, it could use some detailing. Try giving the pad a suitable floor flat. The GATE1 – GATE4 flats work well, as do others like FLAT22 and TLITE6_x. If you did not while building it, ensure that the pad sector is aligned to the 64 by 64 grid, or else most flats will look misaligned. Raise (or lower) the floor, and add the missing lower textures, to give it some depth. A popular effect is to increase the brightness on the pad, and if you are frisky, you can add a flashing or glowing sector effect too.

Further ideas
You can also easily modify this method to create other teleporter effects.


 * For example, you can change the teleporter linedef types to number 52, which finishes the level when crossed. Similarly, type number 124 warps to a secret level.


 * Instead, you can set each line's sector tags to teleport you to different sectors depending on which side you cross. E3M5: Unholy Cathedral (Doom) did this in the courtyard.


 * There are also monster-only teleport types (numbers 125 and 126), so it is possible to move only your enemies around the map, instead of players. MAP08: Tricks and Traps (Doom II) and E4M1: Hell Beneath (Doom) have many examples.


 * Rather than using a pad at all, you could set the teleport type on any linedef, which can serve to disorient the player if they do not anticipate the teleport. Combining this technique with monster-only teleporters is one way to create effects like the teleporter ambush in E1M9: Military Base (Doom).

Example
To see these above ideas in practice, an example WAD demonstrating various teleporter functions is available here.


 * Back to the editing index